package net.schmurgon.gwt.request;

import com.google.gwt.valuestore.shared.RecordChangedEvent;
import net.schmurgon.gwt.request.RunnerRecord;
import net.schmurgon.gwt.request.RunnerChangedHandler;
import org.springframework.roo.addon.gwt.RooGwtMirroredFrom;
import net.schmurgon.server.domain.Runner;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.gwt.valuestore.shared.WriteOperation;

@RooGwtMirroredFrom(Runner.class)
public class RunnerRecordChanged extends RecordChangedEvent<RunnerRecord, RunnerChangedHandler> {

    public static final Type<net.schmurgon.gwt.request.RunnerChangedHandler> TYPE = new com.google.gwt.event.shared.GwtEvent.Type<net.schmurgon.gwt.request.RunnerChangedHandler>();

    public RunnerRecordChanged(RunnerRecord record, WriteOperation writeOperation) {
        super(record, writeOperation);
    }

    public Type<net.schmurgon.gwt.request.RunnerChangedHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(RunnerChangedHandler handler) {
        handler.onRunnerChanged(this);
    }
}
